<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/jquery-easyui.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--自定义index样式-->
	<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css" ></link>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/tableStyle.css" ></link>
	<link rel="stylesheet" href="${ctx }/static/scripts/autocomplete/autocomplate.css" ></link>
	<!--js库-->
	<script type="text/javascript" src="${ctx}/static/scripts/set_select.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
	 <script type="text/javascript" src="${ctx}/static/scripts/WdatePicker/WdatePicker.js"></script>
	 <style type="text/css">
		body{padding: 8px; overflow:hidden;}
		.search_icon{background: url(${ctx}/static/images/head/search.png) no-repeat 1px 50% #c0c0c0;border-radius: 5px;border:1px solid #ccc; width: 20px; height: 20px;cursor: pointer;float:right;margin: 5px 5px 0px 0px}
		.search_icon:HOVER{background-color: #ccc;}
	</style>
	<script type="text/javascript">
		var headers = {};
		headers['__RequestVerificationToken'] = "${RequestVerificationToken}";
	</script>
  </head>
  
  <body>
	<form id="editForm" action="${ctx}/sendController/save" method="post">
		<input type="hidden" id="orderId" name="p_order_id" data-field="order_id" class="echo" value="${orderId}"></input>
		<table id="tag1" class="table-ltr">
			<tbody>
			<tr>
				<td>收件人：</td>
				<td>${obj.consignee_man}</td>
				<td>收件人电话：</td>
				<td>${obj.consignee_phone }</td>
			</tr>
			<tr>
				<td>用户地址：</td>
				<td colspan="3" >${obj.address}</td>
			</tr>
			<tr>
					<td>发放日期：</td>
					<td><input id="sendDate" type="text" data-field="cert_send_date" name="p_cert_send_date" class="echo Wdate wd170" style="width: 100%;" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" ></input></td>
					<td>发放方式：</td>
					<td><input id="sendMode" type="text" data-field="cert_send_mode" name="p_cert_send_mode" class="echo" ></input></td>
				</tr>
				<tr>
					<td>快递单号：</td>
					<td><input id="ex" type="text" data-field="cert_ex" name="p_cert_ex" class="echo" ></input></td>
					<td></td>
					<td></td>
				</tr>
			<tr>
				<td>备注：</td>
				<td colspan="3" ><input id="remark" type="text" data-field="cert_send_remark" name="p_send_remark" class="echo" ></input></td>
			</tr>
			</tbody>
		</table>



	</form>
</body>
<script type="text/javascript">
    var validForm;
    $(function() {
		/* 2. 表单非空验证 */
        validForm = function(){
            var pp = parent;
            var editFrame = pp.winFrame;
            if(!pp.validData("sendDate","请输入发送日期！", 1, editFrame))
                return false;
            if(!pp.validData("sendMode","请输入发送方式！", 1, editFrame))
                return false;
//            if(!pp.validData("contacts","请输入领取人！", 1, editFrame))
//                return false;
//            if(!pp.validData("phone","请输入联系方式！", 1, editFrame))
//                return false;
            if(!pp.validData("ex","请输入快递单号！", 1, editFrame))
                return false;
            return true;
        };
    });
</script>
<script type="text/javascript" src="${ctx}/static/scripts/autocomplete/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="${ctx}/static/scripts/autocomplete/jquery.autocomplete.js"></script>
</html>